<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

Route::get('/debug', 'test/index');  //导入excle数据
Route::any('/importdriver', 'test/importdriver');  //导入excle数据
Route::any('/importvehicle', 'test/importvehicle');  //导入excle数据

//Route::any('/updatedrivelatandlng', 'test/updatedrivelatandlng');  //导入excle数据
Route::get('/', 'index/index');
Route::get('/order/index', 'order/index');
Route::get('/overview',function (){
    return "<h3 style='text-align: center'>待开发</h3>";
});

Route::get('/tms/router', 'Router/showRouter');  //显示tms线路页面
Route::post('/tms/router', 'Router/router');  //获取route信息
Route::post('/router/delete', 'router/delete');  //显示tms线路页面
Route::post('/tms/UpdateRouter', 'Router/UpdateRouter');  //修改tms线路页面
Route::post('/tms/UpdateRouterDriver', 'Router/UpdateRouterDriver');  //更改分配司机数据
Route::get('/tms/router/import', 'Router/showImport');  //显示导入excle页面
Route::post('/tms/router/import', 'Router/import');  //导入excle数据

Route::get('/tms/getGeoCode', 'Router/getGeoCode');  //导入excle数据
Route::get('/tms/getUserAddress', 'Router/getUserAddress');
Route::post('/tms/setUserLatAndLng', 'Router/setUserLatAndLng');
Route::post('/tms/GetRouters', 'Router/GetRouters');
Route::any('/order/create', 'order/create');   //添加订单页面
Route::any('/order/index', 'order/index');   //订单列表页面
Route::post('/order/all', 'order/all');   //所有订单列表页面
Route::get('/order/load', 'order/loadDataFromSap');   //从Sap获取数据
Route::post('/order/getEmptyLatAndLng', 'order/getEmptyLatAndLng');   //订单列表页面
Route::post('/order/checkUnAssignPoints', 'order/checkUnAssignPoints');   //检查有没有未排单的点
Route::any('/driver/index', 'driver/index');   //司机列表页面
Route::get('/driver/create', 'driver/create');   //添加司机
Route::post('/driver/create', 'driver/save');   //保存“添加司机”
Route::get('/driver/update', 'driver/read');   //修改司机
Route::post('/driver/update', 'driver/edit');   //保存“修改司机”
Route::get('/driver/updateMult', 'driver/showUpdateMult');   //显示批量修改页面
Route::post('/driver/updateMult', 'driver/UpdateMult');   //显示批量修改页面
Route::any('/driver/assignVehicle', 'driver/assignVehicle');   //显示分配指定车辆页面
Route::post('/driver/saveAssignVehicler', 'driver/saveAssignVehicle');   //保存分配指定车辆
Route::post('/driver/cancleAssignVehicler', 'driver/cancleAssignVehicle');   //保存分配指定车辆
Route::any('/vehicle/index', 'vehicle/index'); //车辆列表页面
Route::get('/vehicle/create', 'vehicle/create'); //添加车辆
Route::post('/vehicle/create', 'vehicle/save'); //保存车辆
Route::get('/vehicle/update', 'vehicle/edit'); //显示编辑车辆页面
Route::post('/vehicle/update', 'vehicle/update'); //保存编辑车辆
Route::post('/vehicle/assignVehicleLists', 'vehicle/assignVehicleLists'); //分配车辆列表页面
Route::any('/warehouse/index', 'warehouse/index'); //货仓列表页面
Route::any('/warehouse/create', 'warehouse/create'); //货仓添加
Route::any('/warehouse/update', 'warehouse/update');//货仓更新
Route::post('/warehouse/get', 'warehouse/getwareHouse');//货仓更新
Route::post('/log/debug', 'log/debug');//记录排单页面异常信息




